﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Trade.aspx.cs" Inherits="Expo_Trade" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="nspLable.Function" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>展会列表</title>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<link href="../Templates/B2B/css/comm.css" rel="stylesheet" type="text/css" />
<link href="../Templates/B2B/css/channels.css" rel="stylesheet" type="text/css" />
<link href="../Templates/B2B/css/main.css" rel="stylesheet" type="text/css" />
<script src="../Templates/B2B/js/jquery.js" type="text/javascript"></script>
<script src="../js/JScript.js" type="text/javascript"></script>
<script src="../Templates/B2B/js/common.js" type="text/javascript"></script>
<script src="../Templates/B2B/js/jquery-exchange.js" type="text/javascript"></script>
<script src="../Templates/B2B/js/ScrollText.js" type="text/javascript"></script>
<script src="../js/Page.js" type="text/javascript"></script>
<script  src="../js/Compare.js" type="text/javascript"></script>
</head>
<body>
<%=_headstr %>
<div class="cot">
	<div class="bd_site bd_lin mar_top">
		<p class="hd_lt">您当前的位置：<a title="" href="<%=Base.BasePage.Config.WebURL %>">首页</a> &gt; <a title="" href="<%=Base.BasePage.Config.WebURL %>expo/index.aspx">展会</a> &gt; <a title="" href="<%=Base.BasePage.Config.WebURL %>expo/trade.aspx">展会列表</a><%=_typelike == "" ? "" : " &gt; "+_typelike%></p>
		<p class="hd_rt">共找到 <font class="f_c00"><%=expocount %></font> 条信息<%=keyword == "" ? "" : "符合 <font class=\"f_c00\">“" + keyword + "”</font> 的查询结果"%></p>
		<i class="lt"></i><i class="rt"></i>
	</div>
</div>
<div class="cot">
	<div class="cce3">
		<div class="ltnr1 mar_top">
			<b>按行业类别选择：</b>
            <%=_lowertype %>
		</div>
		<p class="ltit mar_top">
			<span class="ltit1">展会信息</span>
			<span class="ltit3">
				<em><input name="KeywordText" id="KeywordText" type="text" class="input1" style=" width:180px" /></em>
				<em class="mtp"><a title="" href="javascript:void(0)" onclick="mino(sltP.options[sltP.selectedIndex].innerText,sltC.options[sltC.selectedIndex].innerText,sltA.options[sltA.selectedIndex].innerText,document.getElementById('KeywordText').value,document.getElementById('RegDate_Sel').value,<%=ordertype %>)"><img src="<%=Base.BasePage.Config.WebURL %>images/so-an1.gif" /></a></em>
			</span>
			<span class="ltit4">
				<em>共<b class="f_c00"><%=expocount %></b>条</em>
				<em><%=PageIndex%>/<%=pagecount%></em>
				<em class="lt"><a title="" href="<%=prevPage %>"></a></em>
				<em class="rt"><a title="" href="<%=nextPage %>">下一页</a></em>
			</span>
		</p>
		<div class="ltnr3 ltmap">
			<p class="w1" id="ltnr">
			<span class="tit"  id="ordertype" name="ordertype">			
									<%if(ordertype==0)
    {
        Response.Write("默认排序");
    } if (ordertype == 1)
      {
          Response.Write("<i class=\"bg5\"></i>最新发布");
      } if (ordertype == 2)
      {
          Response.Write("<i class=\"bg6\"></i>最早发布");
      }
				    %></span>
				<span class="nr">
<em id="ordertype1" name="ordertype1" onclick="mino(sltP.options[sltP.selectedIndex].innerText,sltC.options[sltC.selectedIndex].innerText,sltA.options[sltA.selectedIndex].innerText,document.getElementById('KeywordText').value,document.getElementById('RegDate_Sel').value,1)"><i class="bg5"></i>最新发布</em>
					<em id="ordertype2" name="ordertype2" onclick="mino(sltP.options[sltP.selectedIndex].innerText,sltC.options[sltC.selectedIndex].innerText,sltA.options[sltA.selectedIndex].innerText,document.getElementById('KeywordText').value,document.getElementById('RegDate_Sel').value,2)"><i class="bg6"></i>最早发布</em>
					<em onclick="mino(sltP.options[sltP.selectedIndex].innerText,sltC.options[sltC.selectedIndex].innerText,sltA.options[sltA.selectedIndex].innerText,document.getElementById('KeywordText').value,document.getElementById('RegDate_Sel').value,0)"><i></i>恢复默认排序</em>
				</span>
			</p>
			<p class="w2">
 <select id="sltP" style=" width:104px;"  onchange="mino(this.options[this.selectedIndex].innerText,0,0,document.getElementById('KeywordText').value,document.getElementById('RegDate_Sel').value,<%=ordertype %>)">
                        </select>
			</p>
			<p class="w2">
 <select id="sltC" style=" width:104px;"  onchange="mino(sltP.options[sltP.selectedIndex].innerText,this.options[this.selectedIndex].innerText,0,document.getElementById('KeywordText').value,document.getElementById('RegDate_Sel').value,<%=ordertype %>)">
                        </select>
			</p>
			<p class="w2">
 <select id="sltA" style=" width:104px;" onchange="mino(sltP.options[sltP.selectedIndex].innerText,sltC.options[sltC.selectedIndex].innerText,this.options[this.selectedIndex].innerText,document.getElementById('KeywordText').value,document.getElementById('RegDate_Sel').value,<%=ordertype %>)" >
 </select>
			</p>
			<p class="w2">
			<select name="RegDate_Sel" id="RegDate_Sel" style=" width:104px;"  onchange="mino(sltP.options[sltP.selectedIndex].innerText,sltC.options[sltC.selectedIndex].innerText,sltA.options[sltA.selectedIndex].innerText,document.getElementById('KeywordText').value,document.getElementById('RegDate_Sel').value,<%=ordertype %>)">
				<option value="" <%=time==""?"selected":"" %>>所有发布年份</option>
				<option value="超过5年" <%=time=="超过5年"?"selected":"" %>>超过5年</option>
				<option value="超过3年" <%=time=="超过3年"?"selected":"" %>>超过3年</option>
				<option value="超过2年" <%=time=="超过2年"?"selected":"" %>>超过2年</option>
				<option value="1年以下" <%=time=="1年以下"?"selected":"" %>>1年以下</option>
			</select>
			</p>
						<input id="sel_p" name="sel_p" type="hidden" value="<%=Request.QueryString["pid"]==null?"":Request.QueryString["pid"].ToString() %>" />                    <input id="sel_c" name="sel_c" type="hidden" value="<%=Request.QueryString["cid"]==null?"":Request.QueryString["cid"].ToString() %>" />                    <input id="sel_a" name="sel_a" type="hidden" value="<%=Request.QueryString["aid"]==null?"":Request.QueryString["aid"].ToString() %>" />
			
			                    <script language="javascript" type="text/javascript">

			                        var sP = document.getElementById("sltP");
			                        var sC = document.getElementById("sltC");
			                        var sA = document.getElementById("sltA");
			                        var pid = document.getElementById("sel_p").value;
			                        var cid = document.getElementById("sel_c").value;
			                        var aid = document.getElementById("sel_a").value;

			                        SetCity(sP, sC, sA, pid, cid, aid);
                    </script>
		</div>
		<ul class="clit">
		<%foreach (DataRow dr in expoArray)
    { %>
			<li>
				<p class="clt cw2"><img alt="" src="<%=Function.ProcessImageUrl(dr["Picture"].ToString()) %>" /></p>
				<p class="clt cw6 mar_lt">
					<span><b><%=dr["Title"].ToString().Length > 15 ? dr["Title"].ToString().Substring(0, 15) : dr["Title"].ToString()%></b></span>
					<span class="f_999"><%=Function.GetString(Base.Common.RemoveHTML(dr["Summary"].ToString()), 90)%><a title="" target="_blank" class="l_c00" href="<%=Base.BasePage.Config.WebURL+"expo/Detail-"+dr["ID"].ToString()+Base.BasePage.Config.Rewrite %>">[查看详情]</a></span>
				</p>
			</li>
			<%} %>
		</ul>
	<%=PageNav %>
	</div>
	<div class="crt">
		<div class="csup mar_top">
			<!--广告-->
			<%=_adStr %>
		</div>
		<div class="olt2 cbr1 ow1 mar_top">
			<p class="o1tit olw1">
				<strong>市场展销</strong>
				<em><a title="" target="_blank" class="l_c00_u" href="#">卖家请进</a></em>
			</p>
			<div class="czhnr">
			<%foreach (DataRow dr in PutPicMarkSale.Rows)
     { %>
				<a title="" target="_blank" href="<%= Base.BasePage.Config.WebURL+"News/detail-"+dr["ID"]+Base.BasePage.Config.Rewrite %>"><img alt="" src="<%=dr["Picture"] %>" /></a>
				<b><a title="" target="_blank" href="<%= Base.BasePage.Config.WebURL+"News/detail-"+dr["ID"]+Base.BasePage.Config.Rewrite %>"><%=dr["Title"].ToString().Length > 15 ? dr["Title"].ToString().Substring(0, 15) : dr["Title"].ToString()%></a></b>
				<p>北京合世兴业科技有限公司 <a title="" target="_blank" class="l_c00" href="#">[报名]</a></p>
				<%} %>
			</div>
			<p class="ohlne mar_top"></p>
			<ul class="chuod cp3">
			<%foreach (DataRow dr in MarketsalesList.Rows)
     { %>
				<li><a title="" target="_blank" class="l_c00" href="<%= Base.BasePage.Config.WebURL+"News/detail-"+dr["ID"]+Base.BasePage.Config.Rewrite %>">[报名]</a> <a title="" target="_blank" href="<%= Base.BasePage.Config.WebURL+"News/detail-"+dr["ID"]+Base.BasePage.Config.Rewrite %>"><%=dr["Title"].ToString().Length > 15 ? dr["Title"].ToString().Substring(0, 15) : dr["Title"].ToString()%></a></li>
				<%} %>
			</ul>
		</div>
		<div class="olt2 cbr1 ow1 mar_top">
			<p class="o1tit olw1">
				<strong>超级展厅</strong>
	<%--			<em><a title="" target="_blank" class="l_c00_u" href="#">买家请进</a></em>--%>
			</p>
			<ul class="chuod cp3">
			<% foreach (DataRow dr in NewexpoList.Rows)
      { %>
				<li><a title="<%=dr["Type"] %>" target="_blank" class="l_c00" href="<%=Base.BasePage.Config.WebURL+"expo/trade-"+dr["typeid"]+Base.BasePage.Config.Rewrite %>">[<%=dr["Type"].ToString().Length > 5 ? dr["Type"].ToString().Substring(0, 5) : dr["Type"].ToString()%>]</a> <a title="<%=dr["Title"] %>" target="_blank" href="<%=Base.BasePage.Config.WebURL+"expo/detail-"+dr["ID"]+Base.BasePage.Config.Rewrite %>"><%=dr["Title"].ToString().Length>15?dr["Title"].ToString().Substring(0,15):dr["Title"].ToString() %></a></li>
				<%} %>
			</ul>
		</div>
	</div>
</div>
<input type="hidden" id="hidden_order" name="hidden_order" runat="server" />
<%=_footstr%>
</body>
<script type="text/javascript">
	jQuery(document).ready(function() {
		
		jQuery("#ltnr").mouseover(function(){
			jQuery("#ltnr").find(".nr").show();
			jQuery("#ltnr").find("em").click(function(){
				jQuery("#ltnr").find(".tit").html(jQuery(this).html());
				jQuery("#ltnr").find(".nr").hide();
			});
		});
		jQuery("#ltnr").mouseout(function(){
			jQuery(this).find(".nr").hide();
		});

});
function mino(pid, cid, aid, keyword, regdate, ordertype) {
    var rooturl = '<%=Base.BasePage.Config.WebURL %>';
    var time = '<%=time %>';
    var typeid = '<%=ID %>';
    var page = '<%=PageIndex %>';
    window.location.href = '' + rooturl + 'expo/trade.aspx?id=' + typeid + '&pid=' + escape(pid) + '&cid=' + escape(cid) + '&aid=' + escape(aid) + '&time=' + time + '&page=' + page + '&keyword=' + escape(keyword) + '&regdate=' + escape(regdate) + '&ordertype=' + ordertype + '';
}

</script>
</html>
